﻿<%@ Page Title="" Language="VB" MasterPageFile="~/admin/admin.master" AutoEventWireup="false" CodeFile="unis.aspx.vb" Inherits="admin_uni_unis" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" Runat="Server">
    <div class="page-header">
        <h1>List of Universities</h1>
    </div>
    <p>Select an Institution to view ACS members</p>
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CssClass="table" DataKeyNames="ID" DataSourceID="SqlDataSource1" 
            GridLines="None" AllowPaging="True" AllowSorting="True" PageSize="20">
            <Columns>
                <asp:TemplateField HeaderText="No">
                    <ItemTemplate>
                        <%# Container.DataItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="UNIVERISTY_NAME" HeaderText="INSTITUTION" 
                    SortExpression="UNIVERISTY_NAME" />
                <asp:BoundField DataField="LOCATION" HeaderText="LOCATION" 
                    SortExpression="LOCATION" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
            SelectCommand="SELECT * FROM [UNIVERSITIES]"></asp:SqlDataSource>
    </div>
</asp:Content>

